#ifndef PS2MOUSE_H
#define PS2MOUSE_H
#define F_CPU 11059200UL
#include <avr/io.h>
#include <util/delay.h>
#include "PS2MOUSE.h"

#define PS2_PORT PORTB
#define PS2_DDR  DDRB
#define PS2_PIN PINB
#define MCLK PB6
#define MDATA PB7


uint16_t mouseX;
uint16_t mouseY;
uint16_t mouseZ;
uint8_t mouseNewX; // this is the new displacement value on X direction
uint8_t mouseNewY; // this is the new displacement value on Y direction
uint8_t mouseNewZ; // this is the new displacement value on Z direction

uint8_t isLeft;
uint8_t isRight;
uint8_t isMiddle;

extern void mouseInit();
extern void scanMouse();

#endif //PS2_H